package com.pattern.objectcreator.abstractfactory;

import com.pattern.objectcreator.factorymethod.WhiteHuman;

/**
 * @author yangguanzan
 * @date 3/17/22
 * @description
 */
public class FemaleAbstractFactory implements HumanAbstractFactory {

    /**
     * 创建白人
     *
     * @return 白人对象
     */
    @Override
    public AbstractHuman createWhiteHuman() {
        return new FemaleWhiteHuman();
    }

    /**
     * 创建黑人
     *
     * @return 黑人对象
     */
    @Override
    public AbstractHuman createBlackHuman() {
        return new FemaleBlackHuman();
    }

    /**
     * 创建黄种人
     *
     * @return 黄种人对象
     */
    @Override
    public AbstractHuman createYellowHuman() {
        return new FemaleYellowHuman();
    }
}
